package com.itcast.staticdemo.Demo08;

/*
父类Phone
*/
public class Phone {
    private String phoneName;
    private String phonePrice;

    public String getPhoneName() {
        return phoneName;
    }

    public void setPhoneName(String phoneName) {
        this.phoneName = phoneName;
    }

    public String getPhonePrice() {
        return phonePrice;
    }

    public void setPhonePrice(String phonePrice) {
        this.phonePrice = phonePrice;
    }

    /**
     * 父类call方法
     */
    public void call(String name){
        System.out.println("给"+name+"打电话！");
    }
    public void sentmassage(String name){
        System.out.println("给"+name+"发消息！");
    }
}
